//
//  SHAlertAction.m
//  Tradeaider
//
//  Created by 王方伟 on 16/8/19.
//  Copyright © 2016年 Shinyhub. All rights reserved.
//

#import "SHAlertAction.h"

@implementation SHAlertAction

+ (instancetype)actionWithTitle:(NSString *)title style:(UIAlertActionStyle)style handler:(void (^)(UIAlertAction * _Nonnull))handler{
    SHAlertAction *action = [super actionWithTitle:title style:style handler:handler];
    if ([[UIDevice currentDevice].systemVersion floatValue] >= 9.0) {
        [action setValue:SHColor(0, 158, 220) forKeyPath:@"_titleTextColor"];
    }
    return action;
}
@end
